package com.cyc.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cyc.common.utils.PageUtils;
import com.cyc.gulimall.member.entity.MemberEntity;
import com.cyc.gulimall.member.exception.PhoneException;
import com.cyc.gulimall.member.exception.UsernameException;
import com.cyc.gulimall.member.vo.MemberLoginVo;
import com.cyc.gulimall.member.vo.MemberUserRegisterVo;

import java.util.Map;

/**
 * 会员
 *
 * @author cyc
 * @email 1670046716@qq.com
 * @date 2022-01-20 09:41:09
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberUserRegisterVo vo);

    void checkPhoneUnique(String phone) throws PhoneException;
    void checkUsernameUnique(String username)throws UsernameException;

    MemberEntity login(MemberLoginVo vo);
}

